Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@netlify/framework-info

Package Overview
Dependencies
Maintainers
17
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@netlify/framework-info

Framework detection utility

  • 5.11.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
17
Created

What is @netlify/framework-info?

@netlify/framework-info is an npm package designed to provide information about various web frameworks. It helps in detecting the framework used in a project and provides relevant details, which can be useful for deployment and configuration purposes.

What are @netlify/framework-info's main functionalities?

Detect Framework

This feature allows you to detect the framework used in a given project directory. The `getFramework` function returns details about the detected framework, such as its name and version.

const { getFramework } = require('@netlify/framework-info');

async function detectFramework() {
  const framework = await getFramework({
    projectDir: process.cwd(),
  });
  console.log(framework);
}

detectFramework();

List All Frameworks

This feature provides a list of all frameworks that the package can detect. The `listFrameworks` function returns an array of framework objects, each containing details like name, category, and detection criteria.

const { listFrameworks } = require('@netlify/framework-info');

async function listAllFrameworks() {
  const frameworks = await listFrameworks();
  console.log(frameworks);
}

listAllFrameworks();
0

Keywords

FAQs

Package last updated on 11 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc